package com.rgp.serviceorder.feign;

import com.rgp.internalcommon.dto.AroundSearchDto;
import com.rgp.internalcommon.dto.ResponseResult;
import com.rgp.internalcommon.response.AroundSearchResponse;
import com.rgp.internalcommon.response.TrsearchResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-23 23:25
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/aroundsearch")
    public ResponseResult<AroundSearchResponse[]> aroundSearch(@RequestBody AroundSearchDto aroundSearchDto);

    @GetMapping("track/terminal/trsearch")
    public ResponseResult<TrsearchResponse> trsearch(@RequestParam("tid") Long tid,
                                                     @RequestParam("trid") Integer trid,
                                                     @RequestParam("startTime") String startTime,
                                                     @RequestParam("endTime") String endTime);
}
